<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><!---->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
    <meta name="keywords" content="一直播粉丝,一直播人气,一直播热门,花椒粉丝,花椒人气,花椒热门,抖音粉丝,抖音点赞,抖音热门,火山粉丝,火山点赞,火山热门,小咖秀粉丝,小咖秀点赞,小咖秀热门,映客人气,映客粉丝,NOW直播人气,网易云音乐热门,网易云音乐人气,网易云音乐粉丝" />
    <meta name="description" content="星空网红助手平台是一家专业从事于，一直播、花椒、抖音、小咖秀、映客、火山、网易云音乐、、微博粉丝、NOW直播，增加人气粉丝和关注的平台。一直播粉丝,一直播人气,一直播热门,花椒粉丝,花椒人气,花椒热门,抖音粉丝,抖音点赞,抖音热门,火山粉丝,火山点赞,火山热门,小咖秀粉丝,小咖秀点赞,小咖秀热门,映客人气,映客粉丝,NOW直播人气,微博粉丝,网易云音乐热门,网易云音乐人气,网易云音乐粉丝" /><title>
	星空网红助手 一直播_花椒_抖音_小咖秀_映客_火山_网易云音乐_微博粉丝_NOW直播_增加人气关注粉丝平台
</title><!---->
</head>
<body class="kingcomposer kc-css-system">

<jsp:include page="/include/header.jsp" flush="true"/>

        <div id="view">
            
    <section class="section-login" style='position:relative;'>
        <div id="neirong" class="container" style="position:relative;min-height:800px;">
            <div class="row">
                <div class="col s12 m10 l7 xl5">
                    <div class="form login form-box" id="login">
                        <div class="form-top clearfix center-align">
                            <h4>添加业务</h4>
                            <!-- <small class="center-align msg">注册账号开始下单</small> -->
                        </div>

                        <div class="form-bottom clearfix">
                            <div class="field-dropdown">
                                                                	<div class="select-wrapper select-dropdown bottom-border initialized">
                                                                		<span class="caret" style="display: block;">▼</span>
                                                                			<input type="text" class="select-dropdown" readonly="true" data-activates="1" value="视频点赞" id="changeyewu">
                                                                			<ul id="select-options-28a0461c-fc6e-900f-5903-112836b4d83b" class="dropdown-content select-dropdown" style="width: 440px; position: absolute; top: 0px; left: 0px; opacity: 1; display: none;">
                                                                				<li data-type="1" class=""><span>视频点赞</span></li>
                                                                				<li data-type="2" class=""><span>视频关注</span></li>
                                                                				<li data-type="3" class=""><span>视频评论</span></li>
                                                                				<li data-type="4" class=""><span>视频分享</span></li>
                                                                				<li data-type="5" class=""><span>播放量</span></li>
                                                                			</ul>
                                                                    
                                                                    </div>
                                                                    
                                                                </div>
                            <!-- <div class="form-group" style="width:150px;">
                                <i class="field-icon material-icons prefix">code</i>
                                <input type="text" id="yzm" name="yzm" class="form-control border-full" placeholder="图形验证码" value="" >
                                <div style="position:absolute;margin-left:160px;margin-top:-38px;">
                                    <img id="vcodeimg" style="cursor:pointer;" onclick="this.src='/aspx/Image_zw.aspx?' + Math.random()" title="点击刷新验证码"  src="/aspx/Image_zw.aspx" />
                                </div>
                            </div> -->
                           <!--  <div class="form-group">
                                <span class="field-icon">
                                    <a id="hqyzm" href="javascript:;" onclick="fs();">获取验证码</a>
                                </span>
                                <input type="tel" id="dxyzm" name="dxyzm" class="form-control border-full" placeholder="短信验证码" value="" >
                            </div> -->
                            <div class="form-group">
                                <i class="field-icon material-icons prefix">价格</i>
                                <input type="text" id="price" name="price" class="form-control border-full" placeholder="价格" value="" >
                            </div>
                            <!-- <div class="form-group">
                                <i class="field-icon material-icons prefix">重复密码</i>
                                <input type="password" id="que_pwd" name="que_pwd" class="form-control border-full" placeholder="再次输入密码" value="" >
                            </div>
                             <div class="form-group">
                                <i class="field-icon material-icons prefix">密码提示</i>
                                <input type="text" id="pwdtips" name="pwdtips" class="form-control border-full" placeholder="密码提示" value="" >
                            </div>-->
                            <div class='b_l'>
                                <button class="btn btn-primary btn-medium waves-effect waves-light btn-login" type="button" value="btn_login" onclick="$('#ctl00_body_tj_bt').click();">确认</button>
                            </div>
                            <!--<div class='b_l' style='margin:10px 0px 0px 10px;'>
                                <a href="/xingkong/user/tologin">已有账号？立即登录</a>
                            </div> -->
                            <div class="dis">
                                <script>
                                    function yz(price) {
                                      var ppp = /^[0-9]+$/;
                                        if (price == "" || price == null) {
                                            malert("价格不能为空", 3000);
                                            return false;
                                        } 
                                         if (!ppp.test(price)) {
                                            malert("价格必须为整数");
                                            return false;
                                        }
                                        return true;
                                    }
                                    
                                    function addBusiness(){
                                        	var price = $("#price").val();
                                        	var type=$("#changeyewu").attr("data-activates");
                                        	var name = $("#changeyewu").val();
                                        	if(!yz(price)){
                                        		return;
                                        	}
                                        	$.ajax({
                                        		url:"/xingkong/business/addBusiness",
                                        		type:"post",
                                        		data:{name:name,type:type,price:price},
                                        		dataType: "json",
                                        		success: function(result){
                                        			if(result){
                                        				if(result.code !=100){
                                        					 malert(result.message, 3000);
                                        				}else if(result.code ==100){
                                        					window.location.href = "/xingkong/user/index";
                                        				}
                                        			}
                                        		}
                                        	});
                                        }
                                </script>
                                <div id="ctl00_body_UpdatePanel1">
	
                                    <input type="submit" name="ctl00$body$tj_bt" value="确认" onclick="addBusiness()" id="ctl00_body_tj_bt" class="btn btn-primary btn-medium waves-effect waves-light btn-login" />
                                
</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col s12 hidden-xs m2"></div>
            </div>
        </div>
    </section>

        </div>

 

<jsp:include page="/include/footer.jsp" flush="true"/>
<script type="text/javascript">
	$("#changeyewu").click(function() {
		$("#select-options-28a0461c-fc6e-900f-5903-112836b4d83b").addClass("active").show();
		$(".caret").hide();
		$(this).addClass("active").addClass("ying");
	});
	
	$("#select-options-28a0461c-fc6e-900f-5903-112836b4d83b li").click(function(){
		var type = $(this).attr("data-type");
		var text = $(this).text();
		/* console.log(type);
		console.log(text); */
		$("#select-options-28a0461c-fc6e-900f-5903-112836b4d83b").removeClass("active").hide();
		$(".caret").show();
		$("#changeyewu").val(text).attr("data-activates",type).removeClass("active").removeClass("ying");
	});
</script>
</body>
</html>

